Explanatory file for "Racial Reclassification and Political Identity Formation" and supplementary material found in De Micheli 2021.

Files to reproduce the exact results presented in the article are divided into four numbered groups, each representing one analysis. For each analysis I describe below:
- the files corresponding to each group, 
- data sources and processing (where relevant), and
- any info needed to reproduce results.

1. Pseudo panel analysis

- This group contains one .do file containing Stata code and two datasets, consisting of different birth cohorts analyzed
- The .do files require the file path of the dataset be inserted
- Data come from the Pesquisa Nacional de Amostra de Domicilios, collected by the Brazilian census bureau (IBGE). Data were cleaned and coded using the DataZoom package in Stata, provided by PUC-RIO and available at http://www.econ.puc-rio.br/datazoom/index.html
- Original PNAD survey data can be located at https://www.ibge.gov.br/estatisticas/sociais/populacao/9127-pesquisa-nacional-por-amostra-de-domicilios.html

2. Datafolha analysis

- This group contains one .do file containing Stata code and one dataset, consisting of the Datafolha data cleaned for analysis 
- The .do file requires the file path of the dataset be inserted
- Data were collected by survey firm Datafolha (CESOP-DATAFOLHA/BRASIL08.SET-02636). The survey is informally titled "Corporal Racism" and was conducted in 2008.
- Details on variable coding can be found on page 23 of supplemental appendix.
- Original data are made available by the Center for the Study of Public Opinion (Cesop) at the Universidade Estadual de Campinas (https://www.unicamp.br/cesop/). In Cesop's database, this survey is numbered 02636.

3. Priming experiment

- This group contains one .do file containing Stata code and one dataset, consisting of the data prepared for analysis
- The .do file requires the file path of the dataset be inserted
- Data were originally collected and are available from the World Politics Dataverse repository, found at https://dataverse.harvard.edu/dataverse/world-politics

4. List experiment

- This group contains one .r file containing R code and one .csv file consisting of the data prepared for analysis
- The .r file requires the file path of the dataset be inserted. This code also requires that the 'list' package in R.
- Data were originally collected and are available from the World Politics Dataverse repository, found at https://dataverse.harvard.edu/dataverse/world-politics